package com.example.yifei.ui.page.common

import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.runtime.*
import androidx.compose.ui.ExperimentalComposeUiApi
import com.example.yifei.ui.page.splash.SplashPage
import com.example.yifei.ui.theme.ComposeDoubanTheme
import com.google.accompanist.insets.ProvideWindowInsets
import com.google.accompanist.pager.ExperimentalPagerApi


@ExperimentalMaterialApi
@ExperimentalPagerApi
@ExperimentalFoundationApi
@ExperimentalComposeUiApi
@Composable
fun HomeEntry() {
    ComposeDoubanTheme {
        ProvideWindowInsets {
            //是否闪屏页
            var isSplash by remember { mutableStateOf(true) }
            if (isSplash) {
                SplashPage { isSplash = false }
            } else {
                AppScaffold()
            }
        }
    }


}

